package demo;

/**
 *   梨树
 */
public class Pear extends Crop {

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    //品种
    private  String brand;

    //无参构造
    public Pear() {
        this.brand = brand;
    }


    //有参构造
    public Pear( String brand) {
        super("梨树",12,4,120);
        this.brand = brand;
    }


    @Override
    public void print() {
        super.print();
        System.out.println("您种植的品种是:"+this.brand);
    }
    public void printGrowReport(int day) {
        super.printGrowReport(day);
        System.out.println("您种植了"+super.getName()+"品种:"+this.brand);
    }





}
